package com.nwu.controller;


import com.nwu.util.resultCode.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sciResearch/user")
public class SciResearchManagementLogin {

    //login
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //INFO
    @GetMapping ("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","E:\\phtato\4[A@FZO~XPTH6]WR2[D6KPI.png");
    }


}
